<template>
	<view class="bc">	
		<view class="content">{{content.name}}</view>
		<view class="jijiu">
			<rich-text class="text" :nodes="str" space="emsp"/>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:null,
				name:null,
				str:''
			}
		},
		methods: {
			
		},
		onLoad: function (option) { //option为object类型，会序列化上个页面传递的参数
				console.log(option.content)
				this.content=JSON.parse(option.content)
				this.str=this.content.content.replace(/-/g,"=")
				console.log(this.content.content)
		    }
	}
</script>

<style>
	.bc{
		background-color: #feeeed;
	}
.content{
	width: 80%;
	height: 60rpx;
	line-height: 60rpx;
	margin:0 auto;
	border-radius: 20rpx;
	background-color: rgba(255,255,255,.6);
	text-align: center;
	font-size: 32rpx;
	margin-bottom: 20rpx;
	font-weight: 600;
	letter-spacing:20rpx;
	color: #545454;
}
.jijiu{
	width: 90%;
	margin:40rpx auto;
}
.text{
	font-size: 26rpx;
	line-height: 110rpx;
	letter-spacing:5rpx;
	color: #545454;
}
</style>
